package com.wcsy.myblog.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModelProperty;

/**
 * 用户类
 * */
@TableName("tb_user")
public class User {
  @TableId(type = IdType.INPUT)
  @ApiModelProperty("用户id")
  private long userId;
  @ApiModelProperty("昵称")
  private String userName;
  @ApiModelProperty("密码")
  private String password;
  @ApiModelProperty("电话")
  private String phNumber;
  @ApiModelProperty("邮箱")
  private String mail;
  @ApiModelProperty("头像")
  private String userImg;
  @ApiModelProperty("权限")
  private String userAuthority;
  @ApiModelProperty("关注数")
  private long userAttention;
  @ApiModelProperty("粉丝数")
  private long userFan;
  @ApiModelProperty("当前收益")
  private double userIncome;
  @ApiModelProperty("余额")
  private double userBalance;
  @ApiModelProperty("点赞数")
  private long userLike;
  @ApiModelProperty("未查看的评论")
  private long userComment; //未查看的评论
  @ApiModelProperty("未查看的点赞数")
  private long noLike;//未查看的点赞数
  @ApiModelProperty("未查看的公告")
  private long noAnnouncement; //未查看的公告

  public long getNoLike() {
    return noLike;
  }

  public void setNoLike(long noLike) {
    this.noLike = noLike;
  }

  public long getNoAnnouncement() {
    return noAnnouncement;
  }

  public void setNoAnnouncement(long noAnnouncement) {
    this.noAnnouncement = noAnnouncement;
  }

  public long getUserComment() {
    return userComment;
  }

  public void setUserComment(long userComment) {
    this.userComment = userComment;
  }

  public long getUserLike() {
    return userLike;
  }

  public void setUserLike(long userLike) {
    this.userLike = userLike;
  }

  public long getUserId() {
    return userId;
  }

  public void setUserId(long userId) {
    this.userId = userId;
  }


  public String getUserName() {
    return userName;
  }

  public void setUserName(String userName) {
    this.userName = userName;
  }


  public String getPassword() {
    return password;
  }

  public void setPassword(String password) {
    this.password = password;
  }


  public String getPhNumber() {
    return phNumber;
  }

  public void setPhNumber(String phNumber) {
    this.phNumber = phNumber;
  }


  public String getMail() {
    return mail;
  }

  public void setMail(String mail) {
    this.mail = mail;
  }


  public String getUserImg() {
    return userImg;
  }

  public void setUserImg(String userImg) {
    this.userImg = userImg;
  }


  public String getUserAuthority() {
    return userAuthority;
  }

  public void setUserAuthority(String userAuthority) {
    this.userAuthority = userAuthority;
  }


  public long getUserAttention() {
    return userAttention;
  }

  public void setUserAttention(long userAttention) {
    this.userAttention = userAttention;
  }


  public long getUserFan() {
    return userFan;
  }

  public void setUserFan(long userFan) {
    this.userFan = userFan;
  }


  public double getUserIncome() {
    return userIncome;
  }

  public void setUserIncome(double userIncome) {
    this.userIncome = userIncome;
  }


  public double getUserBalance() {
    return userBalance;
  }

  public void setUserBalance(double userBalance) {
    this.userBalance = userBalance;
  }

  public User(long userId, String userName, String password, String phNumber, String mail, String userImg, String userAuthority, long userAttention, long userFan, double userIncome, double userBalance) {
    this.userId = userId;
    this.userName = userName;
    this.password = password;
    this.phNumber = phNumber;
    this.mail = mail;
    this.userImg = userImg;
    this.userAuthority = userAuthority;
    this.userAttention = userAttention;
    this.userFan = userFan;
    this.userIncome = userIncome;
    this.userBalance = userBalance;
  }

  public User() {
  }

  public User(String userName, String password, String phNumber, String mail, String userImg, String userAuthority, long userAttention, long userFan, double userIncome, double userBalance) {
    this.userName = userName;
    this.password = password;
    this.phNumber = phNumber;
    this.mail = mail;
    this.userImg = userImg;
    this.userAuthority = userAuthority;
    this.userAttention = userAttention;
    this.userFan = userFan;
    this.userIncome = userIncome;
    this.userBalance = userBalance;
  }

  @Override
  public String toString() {
    return "User{" +
            "userId=" + userId +
            ", userName='" + userName + '\'' +
            ", password='" + password + '\'' +
            ", phNumber='" + phNumber + '\'' +
            ", mail='" + mail + '\'' +
            ", userImg='" + userImg + '\'' +
            ", userAuthority='" + userAuthority + '\'' +
            ", userAttention=" + userAttention +
            ", userFan=" + userFan +
            ", userIncome=" + userIncome +
            ", userBalance=" + userBalance +
            ", userLike=" + userLike +
            ", userComment=" + userComment +
            ", noLike=" + noLike +
            '}';
  }
}
